//
//  SYTongJiTableViewCell.m
//  SanYiTeaching
//
//  Created by 郑浩然 on 2019/4/26.
//  Copyright © 2019年 SanYi. All rights reserved.
//

#import "SYTongJiLianXiTableViewCell.h"

@interface SYTongJiLianXiTableViewCell ()


@end


@implementation SYTongJiLianXiTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setQuestionModel:(SYKaoPingZYModel *)questionModel {
    
    self.xuhaoLab.text = questionModel.title;
    self.xingmingLab.text = questionModel.className;
    self.pigaiLab.text = [NSString stringWithFormat:@"%@",questionModel.studentName];
    self.duicuoLab.text = [NSString stringWithFormat:@"%@",questionModel.serial];
    self.zhengqueluLab.text = [NSString stringWithFormat:@"%@",questionModel.totalPage];
    self.defenLab.text = [NSString stringWithFormat:@"%@",questionModel.submitPage];
    self.fenshuLab.text = [NSString stringWithFormat:@"%@",questionModel.statusName];
    self.IsJiaoLable.text = [NSString stringWithFormat:@"%@",questionModel.submitStatus];
    self.timeLable.text = [NSString stringWithFormat:@"%@",questionModel.submitDate];
    if ([questionModel.submitStatus isEqualToString:@"已交"]) {
        self.backgroundColor = [UIColor whiteColor];
    } else {
        self.backgroundColor = [UIColor colorWithHexString:@"#FFFFFF"];
    }
    
}


@end
















